projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32f0761
)
Remove a redundant NULL check
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 15 Jun 2011 01:53:53 +0000
(21:53 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 15 Jun 2011 01:53:53 +0000
(21:53 -0400)
gtk/gtkprinteroption.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprinteroption.c
b/gtk/gtkprinteroption.c
index c2ba064f20c4e540e6c6a26547761680dbd37bda..b2f4d106ecefb0cda0166f43b77c93345b74c9f6 100644
(file)
--- a/
gtk/gtkprinteroption.c
+++ b/
gtk/gtkprinteroption.c
@@
-178,8
+178,7
@@
gtk_printer_option_set (GtkPrinterOption *option,
return;
if ((option->type == GTK_PRINTER_OPTION_TYPE_PICKONE ||
- option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE) &&
- value != NULL)
+ option->type == GTK_PRINTER_OPTION_TYPE_ALTERNATIVE))
{
int i;
@@
-195,7
+194,7
@@
gtk_printer_option_set (GtkPrinterOption *option,
if (i == option->num_choices)
return; /* Not found in available choices */
}
-
+
g_free (option->value);
option->value = g_strdup (value);